<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue/vue.js"></script>
    <style>
        img{
            width: 200px;
            height: 300px;
        }
    </style>
</head>
<body>
    <div class="app">
        <img :src="image" alt="">
        <button @click="one">1</button>
        <button @click="two">2</button>
        <button @click="three">3</button>
    </div>
    <script>
        const vue = new Vue({
            data:{
                image:"image/1.jpg",
            },
            methods: {
                one(){
                    this.image="image/1.jpg"
                },
                two(){
                    this.image="image/2.jpg"
                },
                three(){
                    this.image="image/3.jpg"
                }
            }
        }).$mount(".app");
    </script>
</body>
</html>